import React from "react";
import { Divider, Button, Timeline, Modal, Layout } from "antd/lib";
import Workflow from "@/services/workflow";

function getDatas(items)
{
  let element;
      element = '<div style="text-align:center">';
      element = element + '<h2 align="center" > 委托书</h2>';
      element = element + '<table  border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin:0 auto; width:800px">';
      element = element + ' <tr height="20px"><td></td><td >';
      element = element + '<p align="right" style="margin: 10px;">编号：' + items.code + '</p>';
      element = element + '</td></tr>';
      element = element + '<tr height="20px"><td >';
      element = element + ' <p align="left" width="50%" style="margin: 10px;">现授权   ' + items.empowerpersonname + '</p>';
      element = element + ' </td><td >';
      element = element + '  <p align="right" style="margin: 10px;">（性别： ' + items.empowersex + '   职务：' + items.empowerduties + '）代表我，</p>';
      element = element + '  </td></tr>';
      element = element + '<tr height="20px"><td >';
      element = element + '  <p align="left" width="50%" style="margin: 10px;">以单位名义与  ' + items.party_aname + '</p>';
      element = element + '  </td><td >';
      element = element + '  <p align="right" style="margin: 10px;">（单位）</p>';
      element = element + '   </td></tr>';
      element = element + '<tr height="20px"><td >';
      element = element + '  <p align="left" width="50%" style="margin: 10px;">签订  ' + items.name + ' </p>';
      element = element + '	</td><td >';
      element = element + '  <p align="right" style="margin: 10px;">合同（或协议书）</p>';
      element = element + '      </td></tr>';
      element = element + '<tr height="20px"><td >';
      element = element + '  <p align="left" width="50%" style="margin: 10px;">该代理人所签署的合同（或协议），一式  ' + items.agreementcount + '</p>';
      element = element + '   </td><td >';
      element = element + '  <p align="right" style="margin: 10px;">份，以及与此有关的</p>';
      element = element + '  </td></tr>';
      element = element + '  <tr>';
      element = element + '    <td colspan="2"><p align="left" style="margin: 10px;">文件，我均与承认。';
      element = element + '     </td></tr>';
      element = element + '  </table>';
      element = element + '	 <table  border="0" cellspacing="0" cellpadding="0" style="border-collapse:collapse; margin:0 auto; width:600pt">';
      element = element + '<tr height="20px">';
      element = element + ' <td width="200"></td>';
      element = element + '<td width="200"><p align="left" width="50%" style="margin: 10px;">授权人（签字）： 王剑明</p></td>';
      element = element + '<td width="200"></td>';
      element = element + '</tr>';
      // element = element + '<tr height="20px">';
      // element = element + '<td ></td>';
      // element = element + '<td ><p align="left" width="50%" style="margin: 10px;">公章：</p></td>';
      // element = element + '<td ></td>';
      // element = element + '</tr>';
      element = element + '<tr height="20px">';
      element = element + '<td ></td>';
      element = element + '<td ></td>';
      element = element + '<td ><p align="left" width="50%" style="margin: 10px;"> ' + items.bill_date + '</p></td>';
      element = element + '</tr>';
      element = element + '</table>	';
      element = element + '</div>';

  return element;
}

const LookEmpowerdata = {
  getDatas,
};

export default LookEmpowerdata;
